Auto merge of #2160 - alexcrichton:bail-macro, r=huonw
authorbors <bors@rust-lang.org>
Fri, 20 Nov 2015 22:25:31 +0000 (22:25 +0000)
committerbors <bors@rust-lang.org>
Fri, 20 Nov 2015 22:25:31 +0000 (22:25 +0000)
commit21197dfa96c00bcd4ef7529cae0ed90110d963e0
tree7c157ee7a66a0580ad265bd4c515b4ee43810c4a
parent38ea36b143c1193dadb95e3a58ecfae36ca1e7bf
parent7ab18e3aeb6f6416db2ca36e2fa2a007ea07dbfe
Auto merge of #2160 - alexcrichton:bail-macro, r=huonw

This pattern showed up quite a few locations throughout the codebase but it
ended up meaning that there were some massive levels of indentation when you
actually get to the formatting string. This commit adds a new `bail!` macro
which shortens this idiom to help get the indentation under control throughout
the codebase.